export function isvalidPhone (str) {
  const reg = /^1[2|3|4|5|7|8|9|6][0-9]\d{8}$/
  return reg.test(str)
}

export function phoneValue (str) {
  var numBer = /^((0\d{2,3})-)?(\d{7,8})(-(\d{3,4}))?$/
  var npmPhone = /^1\d{10}$/
  let num = npmPhone.test(str) || numBer.test(str)
  return num
}